<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <div id="test">
    <App></App>
    <App></App>
    <Other></Other>
  </div>

  <script src="../js/vue.js"></script>
  <script>
    const App = Vue.extend({
        name:'APP',
        template:`
            <div>
                <h2 @click="update">count:{{count}}</h2>    
            </div>
        `,
        data(){
            return {
                count:1
            }
        },
        methods:{
            update(){
                this.count++
            }
        }
    })

    const Other = Vue.extend({
        name:'Other',
        template:`<div>
            <p>{{ser}}</p>
            </div>`,
        data(){
            return {
                ser:2
            }
        }
    })

    console.log(Other);
    console.log(App);

    new Vue({
      el: "#test",
      data: {

      },
      components:{
        App,
        myother:Other
      }
    })
  </script>
</body>
</html>